package com.house.mapper;

import com.common.entity.TbCity;
import com.common.entity.house.HouseResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HouseResourceMapper {
    List<TbCity> getCityList(Integer pid);

    List<HouseResource> getPage(HouseResource houseResource);

    List<HouseResource> getRentPage(HouseResource houseResource);

    void updateStatusById(@Param("id") Long id,@Param("status") Integer status);

    void delete(Long id);

    void insert(HouseResource houseResource);

    void bingBroker(@Param("id") Long id,@Param("brokerId") Long brokerId);
}
